package org.example.chapter8.service;

import com.mongodb.client.result.DeleteResult;
import com.mongodb.client.result.UpdateResult;
import org.example.chapter8.pojo.User;

import java.util.List;

/**
 * @author CoderXshuai
 * @date 2020/8/4/0004 21:09
 */

public interface UserService {
    void saveUser(User user);

    DeleteResult deleteUser(String id);

    List<User> findUser(String userName, String note, int skip, int limit);

    UpdateResult updateUser(String id, String userName, String note);

    User getUser(String id);
}
